package com.ssm.gbq.dao;

import com.ssm.gbq.model.FlowerType;
import java.util.List;

public interface FlowerTypeDao {
    /**
     * 分页查询
     * @param flowerType
     * @param currentPage
     * @param pageSize
     */
    List<FlowerType> showFlowerTypeByPage(FlowerType flowerType, int currentPage, int pageSize)throws Exception;

    /**
     * 通过id查询
     * @param fid
     */
    FlowerType getFlowerTypeById(Integer fid)throws Exception;

    /**
     * 修改
     * @param flowerType
     */
    int updateFlowerType(FlowerType flowerType)throws Exception;

    /**
     * 添加
     * @param flowerType
     */
    int addFlowerType(FlowerType flowerType)throws Exception;

    /**
     * 根据id删除
     * @param fid
     */
    int delFlowerType(Integer fid)throws Exception;

    /**
     * 查询数据条数
     * @param flowerType
     */
    int getFlowerTypeCount(FlowerType flowerType);

    /**
     * 批量删除
     */
    int deleteFlowerTypes(List<Integer> ids);

    /**
     * 判断类型是否为空
     */
    int judgeType(List<Integer> fid);

}
